package com.scrumtrek.trainings.tdd;

/**
 * Created with IntelliJ IDEA.
 * User: msuprunov
 * Date: 21.02.13
 * Time: 10:13
 * To change this template use File | Settings | File Templates.
 */
public class SpyPaySystem extends PaySystem {
    private int value;

    public SpyPaySystem() {
        value = -1;
    }

    public void increaseProfit(int value) {
        this.value = value;
    }

    public int lastIncreaseProfit() {
        int result = value;
        value = -1;
        return result;
    }
}
